<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">    
    <title>details_customer</title>
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>  
  <body>
    <s:include value="/include/header.jsp"></s:include>
    <s:if test="%{#session.userId != null}">
    <table>
    	<tr>
		  	<td><s:text name="Customer ID" /></td>		
		  	<td><s:property value="cust.custId" /></td>
		</tr><tr>  	
		  	<td><s:text name="Full Name" /></td>
		  	<td><s:property value="cust.custFullname" /></td>
		</tr><tr>  	
		  	<td><s:text name="Name Init" /></td>
		  	<td><s:property value="cust.custInit" /></td>
		</tr><tr>  	
		  	<td><s:text name="Social Security Number" /></td>
		  	<td><s:property value="cust.custSsn" /></td>
		 </tr><tr> 	
		  	<td><s:text name="Mailing Address" /></td>
		  	<td><s:property value="cust.custAddress" /></td>
		 </tr><tr> 	
		  	<td><s:text name="Telephone Number" /></td>
		  	<td><s:property value="cust.custTelNo" /></td>
	  	</tr>

  	</table>  	
  	<a href="<s:url includeParams="none" namespace="/" action="user/show_cust_REs" >
  					<s:param name="custId"><s:property value="cust.custId" /></s:param></s:url>">
					<s:text name="show_cust_REs" />
			</a><br>
	<a href="<s:url includeParams="none" namespace="/" action="user/show_all_customers" ></s:url>">
					<s:text name="backto_all_customers" />
			</a><br/>
	
	
	</s:if>
  </body>
</html>
